import request from '@/utils/request'

// 查询责任书模版管理列表
export function listZrsMbManage(query) {
  return request({
    url: '/business/ZrsMbManage/list',
    method: 'get',
    params: query
  })
}

// 查询责任书模版管理详细
export function getZrsMbManage(mbId) {
  return request({
    url: '/business/ZrsMbManage/' + mbId,
    method: 'get'
  })
}
//应用
export function editEnable(mbId) {
  return request({
    url: '/business/ZrsMbManage/editEnable/' + mbId,
    method: 'get'
  })
}

export function editUnEnable(mbId) {
  return request({
    url: '/business/ZrsMbManage/editUnEnable/' + mbId,
    method: 'get'
  })
}
//复制
export function copyEdit(mbId) {
  return request({
    url: '/business/ZrsMbManage/copyEdit/' + mbId,
    method: 'get'
  })
}
// 新增责任书模版管理
export function addZrsMbManage(data) {
  return request({
    url: '/business/ZrsMbManage',
    method: 'post',
    data: data
  })
}

// 修改责任书模版管理
export function updateZrsMbManage(data) {
  return request({
    url: '/business/ZrsMbManage',
    method: 'put',
    data: data
  })
}
// 修改责任书模版管理
export function generateZrsManage(data) {
  return request({
    url: '/business/ZrsMbManage/generateZrsManage',
    method: 'post',
    data: data
  })
}

// 删除责任书模版管理
export function delZrsMbManage(mbId) {
  return request({
    url: '/business/ZrsMbManage/' + mbId,
    method: 'delete'
  })
}
